package com.stefan.lession05;

import javax.swing.*;
import java.awt.*;

public class ButtonDemo03 extends JFrame {

    public ButtonDemo03(){
        Container container = this.getContentPane();

        // 多选框
        Checkbox checkbox01 = new Checkbox("checkbox01");
        Checkbox checkbox02 = new Checkbox("checkbox02");
        Checkbox checkbox03 = new Checkbox("checkbox03");

        container.add(checkbox01,BorderLayout.CENTER);
        container.add(checkbox02,BorderLayout.NORTH);
        container.add(checkbox03,BorderLayout.SOUTH);

        this.setVisible(true);
        this.setSize(500,300);
        this.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    }

    public static void main(String[] args) {
        new ButtonDemo03();
    }
}
